package o;

import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appmarket.service.config.protocol.AppLaunchProtocol;
import com.huawei.appmarket.service.config.protocol.AppLaunchProtocol.Request;
import o.cii.c;

public class dqt implements c {
    public void ˏ(Context context, BaseCardBean baseCardBean) {
        if (context != null && (context instanceof Activity)) {
            dgh.ॱ(context, "310501", "EducationCenter|");
            ActivityManager activityManager = (ActivityManager) ((Activity) context).getSystemService("activity");
            if (dgm.ॱ() == -1 || activityManager == null) {
                cjo appLaunchProtocol = new AppLaunchProtocol();
                appLaunchProtocol.ˊ(new Request(true));
                cjm o_cjm = new cjm("educenter.activity", appLaunchProtocol);
                o_cjm.ॱ(context).addFlags(268468224);
                cjk.ˎ().ˋ(context, o_cjm);
                return;
            }
            activityManager.moveTaskToFront(dgm.ॱ(), 1);
        }
    }
}
